<template>
  <div id="app">
    <keep-alive include="Home">
      <transition name="fade" mode="out-in">
        <RouterView class="body" :key="$route.fullPath" />
      </transition>
    </keep-alive>
    <RouterView class="footer" name="bottom" />
  </div>
</template>
<style lang="less" scoped>
#app {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  .body {
    flex: 1;
    overflow: hidden;
  }
  .footer {
    height: 50px;
  }
}
.fade-enter-active,
.fade-leave-active {
  transition: all 0.5s;
}
.fade-enter,
.fade-leave-to {
  transform: translateX(50px);
  opacity: 0;
}
</style>
